package com.crazy.boot.util;

/**
 * @author CrazyCat
 * @date 2021/6/4  14:34
 */
public enum ExceptionCodeEnum {
    DATABASE_EXCEPTION("1001","数据库异常"),
    SHIRO_USER_EXCEPTION("1002", "shiro用户名找不到"),
    SHIRO_PASSWORD_EXCEPTION("1003", "shiro密码不正确"),
    ARITHMETIC_EXCEPTION("1004", "算术异常"),
    OTHER_EXCEPTION("1005", "其他异常"),
    SHIRO_AUTHO_EXCEPTION("1007", "shiro没有权限"),
    NULL_EXCEPTION("1006", "空指针异常");
    private String code;
    private String msg;

    ExceptionCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
